<?php
/**
 * Class descript.
 * User: chan
 * Date: 2017/9/28 19:39
 */

namespace app\api\model;


use app\api\BaseModel;

class Order extends BaseModel
{
	protected $autoWriteTimestamp = 'datetime';

    public function getAddressAttr($val){
        return empty($val) ? '' : json_decode($val);
    }

}